<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags" %>
<%@ taglib prefix="sj" uri="/struts-jquery-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link rel="stylesheet" type="text/css" href="/HR_0002/style.css" /> 
<sj:head/>
</head>
<body>
<div id="main">
<p>添加培训</p>
 
<form action="train!addTrain" method="post">
    <table width="581" border="0">
    <tr>
    <td colspan="4"><input type="hidden" name="id" value="<s:property value="train.id"/>"/></td>
    </tr>
    <s:if test="%{train!=null}">
    <tr>
      <td >ID</td>
      <td colspan="3"><input name="train.id" type="text" value="<s:property value="train.id" />"/></td>
    </tr>
    </s:if>
  
     <tr>
      <td width="124">培训人姓名：</td>
      <td width="184"><input name="train.name" type="text" value="<s:property value="train.name"/>"/></td>
      <td width="100">培训时间：</td>
      <td width="200"><sj:datepicker value="%{train.time}" name="train.time" displayFormat="yy-mm-dd" yearRange="1995:2012" changeYear="true" changeMonth="true"/></td>
    </tr>
    <tr>
      <td>培训标题</td>
      <td><input name="train.title" type="text" value="<s:property value="train.title"/>"/></td>
      <td>培训地：</td>
      <td><input name="train.address" type="text" value="<s:property value="train.address"/>"/></td>
    </tr>
    <tr>
     
      <td colspan="4"><s:textarea name="train.content" value="%{train.content}" label="培训内容"/></td>
   </tr>
      <s:if test="%{train!=null}">
      <tr>
      <td colspan="4"><input value="更新" type="submit"></td>
      </tr>
     </s:if>
     <s:else>
      <tr>
      <td colspan="4"><input value="保存" type="submit"></td>
      </tr>
     
     </s:else>
  </table>
  <p>&nbsp;</p>
</form>

</div>
</body>
</html>